package com.monitor.display_platform.core.common;

import java.util.Optional;

public class Tuple3<A,B,C> extends Tuple {
    private A a;
    private B b;
    private C c;

    public Tuple3(A a, B b, C c){
       this.a = a;
       this.b = b;
       this.c = c;
    }
    @Override
    public <A> Optional _1() {
        return Optional.ofNullable(a);
    }

    @Override
    public <B> Optional _2() {
        return Optional.ofNullable(b);
    }

    @Override
    public <C> Optional _3() {
        return Optional.ofNullable(c);
    }

    @Override
    public <D> Optional<D> _4() {
        return Optional.empty();
    }

    @Override
    public <E> Optional<E> _5() {
        return Optional.empty();
    }
}
